submitted-bind_umask2
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 28 Aug 2021 19:29:36 +0000 (20:29 +0100)
committerRaspbian forward porter <root@raspbian.org>
Sat, 28 Aug 2021 19:29:36 +0000 (20:29 +0100)
commitca71d9a9db70a7179091395c5b16720b3ade60a7
tree9e3a63c1f3ae00ecee6d90f35179f184c1476d4c
parente97a5826ca27d9102af2b9a20ddb50c6f933ec72
submitted-bind_umask2

2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>

Fix bind when umask is e.g. 0777.

        * sysdeps/mach/hurd/bind.c (__bind): Pass mode 0666 to __dir_mkfile
        instead of final mode, so that call __ifsock_getsockaddr can always
        succeed, before calling __file_chmod to fix the mode according to umask,
        before calling __dir_link to show the file.

Part of the original fix was committed, the other hasn't been yet, see Roland's
"Harumph" reply to
https://sourceware.org/ml/libc-alpha/2014-08/msg00408.html

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name submitted-bind_umask2.diff
sysdeps/mach/hurd/bind.c